/**
 *	数据库表格管理-flowunit
 *	开发者：雨中磐石
 *	地址：www.rockoa.com
 *	日期：2023-07-19
 */

package com.framework.Module.flow.flowunit;

import com.framework.Table.Table;
import com.framerock.db.DBConn;
import com.framerock.baselib.Rock;

public class Tableflowunit extends  Table{
  

    protected void initTable() {
        this.tablename   = "flowunit";
        this.tablenamesm = "单位模块";

        this.flowsetMap  = Rock.getMap(new String[]{
                "type", "系统",
                "sort", "911",
                "isxt", "2",
        });

        this.addfields("icons", "varchar(200)", "", "图标", new String[]{
                "isss","0",
                "fieldstype","uploadimg",
        });
        this.addfields("name", "varchar(100)", "", "名称", new String[]{
                "isbt","1",
                "isss","1",
                "isalign","1",
                "iseditlx","1",
        });
        this.addfields("type", "varchar(50)", "", "分类", new String[]{
                "isbt","1",
                "isss","1",
                "iseditlx","1",
                "ispx","1"
        });
        this.addfields("recename", "varchar(500)", "", "可用人员@receid@不设置为全部人员可用", new String[]{
                "isss","1",
                "fieldstype","changedeptusercheck",
        });
        this.addfields("receid", "varchar(500)", "", "可用人员ID", new String[]{
                "islu","0",
                "islb","0",
        });
        this.addfields("url", "varchar(300)", "", "地址", new String[]{
                "islb","1",
                "placeholder","http开头地址/分组条件编号"
        });
        this.addfields("cid", "int(11)", "0", "对应单位", new String[]{
                "islu","0"
        });
        this.addfields("modeid", "int(11)", "0", "模块ID", new String[]{
                "islu","0",
                "islb","0"
        });
        this.addfields("mknum", "varchar(50)", "", "关联模块", new String[]{
                "islu","0",
        });
        this.addfields("status", "tinyint(1)", "1", "状态@0|停用|gray,1|启用|green@启用模块", new String[]{
                "ispx","1",
                "iseditlx","1",
                "fieldstype", "checkbox"
        });
        this.addfields("istx", "tinyint(1)", "1", "提醒@@提醒到消息表", new String[]{
                "iseditlx","1",
        });
        this.addfields("isxs", "tinyint(1)", "1", "显示@@显示在菜单应用", new String[]{
                "iseditlx","1",
        });
        this.addfields("isflow", "tinyint(1)", "0", "流程模式@0|无流程,1|顺序流程", new String[]{
                "ispx","1",
                "isss","1"
        });
        this.addfields("managename", "varchar(500)", "", "管理员@manageid@不设置默认单位管理员", new String[]{
                "isss","1",
                "fieldstype","changeusercheck",
        });
        this.addfields("manageid", "varchar(500)", "", "管理员ID", new String[]{
                "islu","0",
                "islb","0",
        });
        this.addfields("issx", "tinyint(1)", "0", "首显@@首页上显示此模块应用", new String[]{
                "ispx","1",
                "iseditlx","1",
        });
        this.addfields("color", "varchar(50)", "", "颜色", new String[]{
                "islu","1",
                "iseditlx","1",
        });
        this.addfields("sort", "int(11)", "0", "排序", new String[]{
                "ispx","1",
                "iseditlx","1",
        });
        this.addfields("cid", "KEY", "`cid`", "单位ID");

        this.addWhere("所有模块", "all", "1=1");
        this.addWhere("关联平台模块", "allgl", "`modeid`>0");
        this.addWhere("自建模块", "allzj", "`modeid`=0");
    }
}
